package com.power.mock.mockstatic;

import com.bj58.sfft.utility.dao.basedao.DAOHelper;
import com.bj58.sfft.utility.dao.basedao.IDAO;
import com.google.inject.Singleton;
import com.power.mock.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author wangjianxin01
 */
@Singleton
public class UserDAO extends DBBaseDao{
    private Logger logger = LoggerFactory.getLogger(this.getClass());
    private static final DAOHelper daoHelper = DBBaseDao.wbestDBHelper;
    private static final IDAO dao = daoHelper.sql;


    public void saveUser(User user) {
        logger.info("in method: saveUser(User user), user = {}", user);
        throw new RuntimeException();
    }

    public User getUser(String name) {
        logger.info("in method: getUser(String name), name = {}", name);
        throw new RuntimeException();
    }
}
